package com.ufox.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 优狐科技-www.hbufox.com
 * @since 2022-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Products implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("NAME")
    private String name;

    private Double price;

    private Integer typeid;

    private Integer pnum;

    private String imgurl;

    private String description;

    /**
     * (0已下架，1在售)
     */
    private Integer state;

    private Date addTime;

    private Date updateTime;

    private Integer userId;

    /**
     * (0不展示，1展示)
     */
    private Integer isShow;

    @TableField(exist = false)
    private String typename; //类型名称

    @TableField(exist = false)
    private String username; //用户名

    @TableField(exist = false)
    private String sufficient; //商品货源

    @TableField(exist = false)
    private Cartitem cartitem;

    @TableField(exist = false)
    private String totalprice;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private String details;

    @TableField(exist = false)
    private String htmlDetails;

    @TableField(exist = false)
    private List<Orderitem> orderitems;

}
